package com.mytijian.exception;

import com.mytijian.exception.ErrorInfo;

public enum CommonExceptionEnum implements ErrorInfo {

	CREATE_OBJECT_ERROR("102000", "create object error"),
	BEAN_COPY_ERROR("102001", "object copy error"),
	DATE_PARSE_ERROR("102002", "date parse error");

	private String errorCode;
	private String errorMsg;

	private CommonExceptionEnum(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	@Override
	public String getErrorCode() {
		return errorCode;
	}

	@Override
	public String getErrorMsg() {
		return errorMsg;
	}

}
